/*
 * @Author: your name
 * @Date: 2021-02-05 09:20:32
 * @LastEditTime: 2021-02-21 10:13:30
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \myproject\src\api\channel.js
 */

import request from '@/utils/request.js'
export const getChannels = () => {
  return request({
    method: 'GET',
    url: '/v1_0/user/channels'
  })
}
export const getAllChannels = () => {
  return request({
    method: 'GET',
    url: '/v1_0/channels'
  })
}
export const updateChannelList = (data) => {
  return request({
    method: 'PUT',
    url: '/v1_0/user/channels',
    data
  })
}
